#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QJsonObject>
#include <QMainWindow>
#include <QLabel>
#include "../MyLib/mylib.h"

namespace Ui {
class MainWindow;
}
class zhuTest;

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    zhuTest *ZhuTest;

    void setChartWithData(QJsonArray arr);

    void setWeatherWithData(QJsonArray arr);


public slots:

    void timeUpdate();

    void slot_getTodayTemperature(QJsonObject obj); 

    void paintEvent(QPaintEvent *event);

private:
    Ui::MainWindow *ui;
    QLabel *day1;
    QLabel *day2;
    MyLib *myLib;

};

#endif // MAINWINDOW_H
